
{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
  <style>
		@media only screen and (max-width: 760px),(min-device-width: 768px) and (max-device-width:1024px)  {
		table, thead, tbody, th, td, tr { 
			display: block; 
		}
		thead tr { 
			position: absolute;
			top: -9999px;
			left: -9999px;
		}
		td { 
			border: none;
			border-bottom: 1px solid #eee; 
			position: relative;
			padding-left:44% !important; 
			padding-top:10px ;
		}
	    #mytable tr{ margin-bottom:20px;}
		td:before { 
			position: absolute;
			top:10px;
			left:8px;
			width: 45%; 
			padding-right:10px;
			white-space: nowrap;
		}
		    td:nth-of-type(1):before { content: "姓名"; }
			td:nth-of-type(2):before { content: "编号"; }
			td:nth-of-type(3):before { content: "性别"; }
			td:nth-of-type(4):before { content: "职称"; }
			td:nth-of-type(5):before { content: "学历"; }
			td:nth-of-type(6):before { content: "出生日期"; }
			td:nth-of-type(7):before { content: "入职时间"; }
			td:nth-of-type(8):before { content: "相片"; }
			td:nth-of-type(9):before { content: "附件"; }
			td:nth-of-type(10):before { content: "操作"; }
        }		
	</style>

  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form action="" method="post">	
                <div class="box-header with-border">
                    <span class="fa fa-pencil" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">教师统计查询列表</p>
                    <a href="#" class="btn btn-warning btn-sm" style="float:right; color:#fff; margin-left:10px;">导 出</a>
					<a href="#" class="btn btn-success btn-sm" style="float:right; color:#fff; margin-left:10px;">打 印</a>
                </div>
                <div class="box-body">
				    <div class="col-md-3 form-group">
						  <label for="inputPassword3" class="col-sm-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
							   报表名称：
						  </label>
						  <div class="input-group col-md-8 col-xs-12">
						   {%foreach from=$report_lists key=key item=value%}
							 <input type="text" class="form-control" value="{%$value.report_name%}"  name="staff_name">
						   {%/foreach%}
						  </div> 
				    </div>
					<div class="col-md-3 form-group">
						  <label for="inputPassword3" class="col-sm-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500; margin:0;">
							   详细信息：
						  </label>
						  <div class="input-group col-md-8 col-xs-12">
						  {%foreach from=$report_lists key=key item=value%}
							   <input type="text" class="form-control" value="{%$value.report_describe%}"  name="staff_name">
						  {%/foreach%}
						  </div> 
				    </div>
					<div class="col-md-3 col-xs-12 form-group">
						  <label for="inputPassword3" class="col-sm-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500; ">
							   备注：
						  </label>
						  <div class="input-group col-md-8 col-xs-12">
						  {%foreach from=$report_lists key=key item=value%}
							   <input type="text" class="form-control" value="{%$value.report_remark%}"  name="staff_name">
						  {%/foreach%}
						  </div>						  
				    </div>
					
                    <div style="clear:both; height:2px;"></div>
                     <table class="table table-bordered"  id="mytable">
                                <thead>
                                    <tr>
                                 {%foreach from=$record_lists key=key item=value%}
                                        <td>{%$value.record_name%}</td>
                                   {%/foreach%} 
                                    </tr>	
                                </thead>

                                <tbody>
                               {%foreach from=$staff_lists key=key item=value%}
                                    <tr>
                                            <td>{%if $record_lists.record_name == "姓名"%}{%$value.staff_name%}{%/if%}</td>                                           
                                            <td>{%if $record_lists.record_name == "编号"%}{%$value.staff_number%}{%/if%}</td>
                                            <td>{%if $record_lists.record_name == "身份证"%}{%$value.staff_card%}{%/if%}</td>
                                            <td>{%if $record_lists.record_name == "性别"%}{%if $value.staff_sex=='0'%}女{%else%}男{%/if%}{%/if%}</td>                                           
                                            <td>{%if $record_lists.record_name == "职称"%}{%if $value.staff_position=="0"%}未定级{%elseif $value.staff_position=="1"%}二级{%elseif $value.staff_position=="2"%}一级{%else $value.staff_position=="3"%}高级{%/if%}{%/if%}</td>
                                            <td>{%if $record_lists.record_name == "学历"%}{%if $value.staff_education=="0"%}专科以下{%elseif $value.staff_education=="1"%}专科{%elseif $value.staff_education=="2"%}本科{%elseif $value.staff_education=="3"%}研究生{%else $value.staff_education=="4"%}研究生以上{%/if%}{%/if%}</td>                                           
                                            <td>{%if $record_lists.record_name == "出生日期"%}{%$value.staff_birth%}{%/if%}</td>
                                            <td>{%if $record_lists.record_name == "入职时间"%}{%$value.staff_entry%}{%/if%}</td>                                           
                                            <td>{%if $record_lists.record_name == "相片"%}{%$value.staff_img%}{%/if%}</td>
                                            <td>{%if $record_lists.record_name == "附件"%}{%$value.staff_file%}{%/if%}</td>
                                        <td>
                                        	  <a href="index.php?a=teacher.update&staff_id={%$value.staff_id%}" class="btn btn-warning btn-xs"> 修  改 </a>
											  <a href="index.php?a=personnel.appointlist&staff_id={%$value.staff_id%}" class="btn btn-primary btn-xs"> 人事任命</a>
											  <a href="index.php?a=change.list&staff_id={%$value.staff_id%}" class="btn btn-success btn-xs"> 人事变动</a>
											  <a href="index.php?a=teacher.teachlist&staff_id={%$value.staff_id%}" class="btn btn-info btn-xs"> 教学信息</a>
											  <a href="index.php?a=teacher.del&staff_id={%$value.staff_id%}" class="btn btn-danger btn-xs" onclick="if(confirm('警告！确认删除信息?')==false)return false;"> 删  除 </a>
                                        </td>
                                    </tr>	
                                 {%/foreach%}
                                 
                               </tbody>
                        </table>
                        {%$page%}
				   </div><!--box-body -->
               </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
 
  {%include file="index.footer.tpl.php"%}
